#ifndef UPDATEPASSWORD_H
#define UPDATEPASSWORD_H

#include <QWidget>
#include "person.h"

namespace Ui {
class updatePassWord;
}

class updatePassWord : public QWidget
{
    Q_OBJECT

public:
    explicit updatePassWord(QWidget *parent = nullptr, Person * user = nullptr);
    ~updatePassWord();
    void basicSettings();
    void connectSettings();

protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
    void mouseReleaseEvent(QMouseEvent *event) override;

private:
    Ui::updatePassWord *ui;

    QPoint address; //鼠标位置
    Person * passWord_user = nullptr; //用户指针

public slots:
    void updateJudge(); //修改判断函数
    void closePassWord(); //关闭修改窗口
};

#endif // UPDATEPASSWORD_H
